import 'babel-polyfill'
function test(){
	for (let i = 1; i < 3; i++) {
		console.log(i);
	}
}
test();


{
	let a={
		title:'abs',
		test:[
		{
			title:'test'
		}
		]
	}
	let {title:esTitle,test:[{title:cntitle}]}=a
	console.log(esTitle,cntitle);
}
{
	let regex=new RegExp('xyz','i');
	let regex2=new RegExp(/xyz/i)
	console.log(regex.test('xyz123'),regex2.test('xyz123'));
	let aa=new RegExp
}
{
	console.log('a',`\u0061`);
	console.log('x',`\u20bb7`);
	console.log('x',`\u{20bb7}`);
}
{
	let a='𠮷a';
	console.log(a.length);
	console.log(a.codePointAt(0));
	console.log(a.codePointAt(0).toString(16));
	console.log(a.charCodeAt(0));
	console.log(a.charCodeAt(1));
}
{
	let str="string";
	console.log('include',str.includes('c'));
	console.log('start',str.startsWith('c'));
	console.log('end',str.endsWith('c'));
}
{
	let str="abc";
	console.log(str.repeat(2));
}
{
	let name="list";
	let info='hello world';
	let m=`i  am ${name},${info}`
	console.log(m);
}

{
	console.log('1'.padStart(2,'0'));
	console.log('1'.padEnd(2,'0'));
}

{
	let user={
		name:'list',
		info:'hello world'
	};
	console.log(abc`i am ${user.name},${user.info}`);
	function abc(s,v1,v2){
		console.log(s,v1,v2);
		return s+v1+v2;
	}
}

{
	console.log(String.raw`Hi\n${1+2}`);
	console.log(`Hi\n${1+2}`);
}